//引入封装的reuest请求
const {
  request
} = require("./request.js");
//基于业务封装的接口
module.exports = {
	
	// 免责说明
	mzsmList() {
	  return request({
	    url: "/index.php/api/shop/mzsm",
	    method: "POST",
	  });
	},
	
	
	// 品牌列表
	shopList() {
	  return request({
	    url: "/index.php/api/shop/Plist",
	    method: "POST",
	  });
	},
	
	// 商品/分类列表
	spList(data) {
	  return request({
	    url: "/index.php/api/shop/shopList",
	    method: "POST",
		data
	  });
	},
	
	// 积分兑换
	jfdh(data) {
	  return request({
	    url: "/index.php/api/shop/jfdh",
	    method: "POST",
		data
	  });
	},
	
	// 商城交易记录
	getBuyShop(data) {
	  return request({
	    url: "/index.php/api/shop/buyShop",
	    method: "POST",
		data
	  });
	},
	
	// 商城交易记录列表
	getBuyShopJl(data) {
	  return request({
	    url: "/index.php/api/shop/buyShopJl",
	    method: "POST",
		data
	  });
	},
	
	// 商城退款
	getScrRefund(data) {
	  return request({
	    url: "/index.php/api/shop/scrRefund",
	    method: "POST",
		data
	  });
	},
	
	// 商城退款交易记录
	getScRrefundJl(data) {
	  return request({
	    url: "/index.php/api/shop/scRrefundJl",
	    method: "POST",
		data
	  });
	},
}